package pojo;

import pojo.MyUser;
public class MyBlog {

	private int id;
	private int userId;
	private String title;
	private String content;
	
	private MyUser author;
/*
	public MyBlog(int id, int userId, String title, String content, MyUser author) {
		super();
		this.id = id;
		this.userId = userId;
		this.title = title;
		this.content = content;
		this.author = author;
	}
*/
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public MyUser getAuthor() {
		return author;
	}

	public void setAuthor(MyUser author) {
		this.author = author;
	}

	@Override
	public String toString() {
		return "MyBlog [id=" + id + ", userId=" + userId + ", title=" + title + ", content=" + content + ", author="
				+ author + "]";
	}
	
	
}
